↳ Prolog
↳ PrologToPiTRSProof
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
GOAL_IN_G(X) → U6_G(X, s2t_in_ga(X, T))
GOAL_IN_G(X) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, T)) → U3_GA(X, T, Y, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(T, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(nil, Y, T)) → U4_GA(X, Y, T, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(nil, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, nil)) → U5_GA(X, T, Y, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(T, Y, nil)) → S2T_IN_GA(X, T)
U6_G(X, s2t_out_ga(X, T)) → U7_G(X, tree_in_g(T))
U6_G(X, s2t_out_ga(X, T)) → TREE_IN_G(T)
TREE_IN_G(node(L, X, R)) → U1_G(L, X, R, tree_in_g(L))
TREE_IN_G(node(L, X, R)) → TREE_IN_G(L)
U1_G(L, X, R, tree_out_g(L)) → U2_G(L, X, R, tree_in_g(R))
U1_G(L, X, R, tree_out_g(L)) → TREE_IN_G(R)
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
GOAL_IN_G(X) → U6_G(X, s2t_in_ga(X, T))
GOAL_IN_G(X) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, T)) → U3_GA(X, T, Y, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(T, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(nil, Y, T)) → U4_GA(X, Y, T, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(nil, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, nil)) → U5_GA(X, T, Y, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(T, Y, nil)) → S2T_IN_GA(X, T)
U6_G(X, s2t_out_ga(X, T)) → U7_G(X, tree_in_g(T))
U6_G(X, s2t_out_ga(X, T)) → TREE_IN_G(T)
TREE_IN_G(node(L, X, R)) → U1_G(L, X, R, tree_in_g(L))
TREE_IN_G(node(L, X, R)) → TREE_IN_G(L)
U1_G(L, X, R, tree_out_g(L)) → U2_G(L, X, R, tree_in_g(R))
U1_G(L, X, R, tree_out_g(L)) → TREE_IN_G(R)
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
TREE_IN_G(node(L, X, R)) → U1_G(L, X, R, tree_in_g(L))
TREE_IN_G(node(L, X, R)) → TREE_IN_G(L)
U1_G(L, X, R, tree_out_g(L)) → TREE_IN_G(R)
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
TREE_IN_G(node(L, X, R)) → U1_G(L, X, R, tree_in_g(L))
TREE_IN_G(node(L, X, R)) → TREE_IN_G(L)
U1_G(L, X, R, tree_out_g(L)) → TREE_IN_G(R)
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
U1_G(R, tree_out_g) → TREE_IN_G(R)
TREE_IN_G(node(L, R)) → TREE_IN_G(L)
TREE_IN_G(node(L, R)) → U1_G(R, tree_in_g(L))
tree_in_g(nil) → tree_out_g
tree_in_g(node(L, R)) → U1_g(R, tree_in_g(L))
U1_g(R, tree_out_g) → U2_g(tree_in_g(R))
U2_g(tree_out_g) → tree_out_g
tree_in_g(x0)
U1_g(x0, x1)
U2_g(x0)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
S2T_IN_GA(s(X), node(T, Y, nil)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(nil, Y, T)) → S2T_IN_GA(X, T)
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
S2T_IN_GA(s(X), node(T, Y, nil)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(nil, Y, T)) → S2T_IN_GA(X, T)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
S2T_IN_GA(s(X)) → S2T_IN_GA(X)
From the DPs we obtained the following set of size-change graphs: